<!--
 * @Author: asushiye
 * @Date: 2020-07-02 15:30:23
 * @Commit: file content
-->
<page-header autoTitle="false" />

<nz-card>
  <form nz-form nzLayout="inline" se-container>
    <se label="上传编号" labelWidth="0">
      <input nz-input name="queueId" placeholder="请输入上传编号" [(ngModel)]="queryParams.queueId" />
    </se>
    <se label="文件名" labelWidth="0">
      <input nz-input name="name" placeholder="请输入文件名, 支持模糊查询" [(ngModel)]="queryParams.fileName" />
    </se>
    <se label="业务类型" labelWidth="0">
      <nz-select nzShowSearch nzAllowClear nzPlaceHolder="选择业务类型" [(ngModel)]="queryParams.business" name="business">
        <nz-option *ngFor="let item of updateFileTypes" [nzLabel]="item.name" [nzValue]="item.code" />
      </nz-select>
    </se>
    <se>
      <button nz-button nzType="primary" (click)="query()" [nzLoading]="isLoading">查询</button>
    </se>
  </form>
  <st #st [data]="url" [req]="req" [columns]="columns" [expand]="expand" size="small" expandRowByClick expandAccordion>
    <ng-template #expand let-item let-index="index" let-column="column">
      <sv-container size="small" col="3">
        <sv-title>更多内容</sv-title>
        <sv label="操作方式">{{ item!.action }}</sv>
        <sv label="导入信息" type="success" col="2">{{ item!.syncMsg }}</sv>
        <sv label="扩展内容">{{ item!.extendedFields }}</sv>
        <sv label="创建人">{{ item!.createdBy }}</sv>
        <sv label="创建时间">{{ item!.createdDate }}</sv>
        <sv label="文件" col="1">{{ item!.fileFull }}</sv>
      </sv-container>
    </ng-template>
  </st>
</nz-card>
